package com.example.mybatisplus.service;

import com.example.mybatisplus.model.domain.FilmCollection;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fmx
 * @since 2024-11-17
 */
public interface FilmCollectionService extends IService<FilmCollection> {
    void addFilmCollection(Integer userId, Integer movieId);
    void deleteFilmCollection(Integer userId, Integer movieId);

    List<Integer> getCollectedMovieIdsByUserId(Integer userId);

    boolean checkIfUserHasMovie(Integer userId, Integer movieId);
}
